package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.domain.operateLog.OperateLogDO;
import com.qk.dto.operateLog.OperateLogDTO;
import com.qk.entity.OperateLog;
import com.qk.management.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ZgYn
 * @Date 2025/10/17 17:06
 * @Name OperateLogController
 */
@RestController
@RequestMapping("/logs")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;

    @GetMapping
    public Result getOperateLog(OperateLogDTO operateLogDTO) {
        PageResult<OperateLogDO> operateLogs = operateLogService.selectByPage(operateLogDTO);
        return Result.success(operateLogs);
    }
}
